# 倒入模块
from redis import Redis
# 创建句柄
redis_cli = Redis(host='localhost',port=6379,db=0)
redis_cli.set('name','zhangsan')
name = redis_cli.get('name')
print(name)
redis_cli.delete('name')